//导入两个方法变量名
import {
  DEL_NEWS,
  READ_NEWS,
  ALL_READ
} from "./actionTypes"

//设置操作数据的方法

const delNews = (value)=>{
  return {
    type:DEL_NEWS,
    value
  }
}
const readNews = (value)=>{
  return {
    type:READ_NEWS,
    value
  }
}

const allRead=()=>{
  return {
    type:ALL_READ
  }
}

//导出方法
export {
  delNews,
  readNews,
  allRead
}
